package cn.iocoder.yudao.module.enterprise.convert.reductionscene;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.enterprise.controller.admin.reductionscene.vo.ReductionSceneCreateReqVO;
import cn.iocoder.yudao.module.enterprise.controller.admin.reductionscene.vo.ReductionSceneRespVO;
import cn.iocoder.yudao.module.enterprise.controller.admin.reductionscene.vo.ReductionSceneUpdateReqVO;
import cn.iocoder.yudao.module.enterprise.dal.dataobject.reductionscene.ReductionSceneDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 减排场景 Convert
 *
 * @author StevenShen
 */
@Mapper
public interface ReductionSceneConvert {

    ReductionSceneConvert INSTANCE = Mappers.getMapper(ReductionSceneConvert.class);

    ReductionSceneDO convert(ReductionSceneCreateReqVO bean);

    ReductionSceneDO convert(ReductionSceneUpdateReqVO bean);

    ReductionSceneRespVO convert(ReductionSceneDO bean);

    List<ReductionSceneRespVO> convertList(List<ReductionSceneDO> list);

    PageResult<ReductionSceneRespVO> convertPage(PageResult<ReductionSceneDO> page);

}
